package net.studou.po;

import java.util.Date;

/**
 * Email entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Email implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 9217709091928117088L;
	private Integer emailId;
	private User to;
	private User from;
	private String content;
	private Integer status;
	private Date createtime;

	// Constructors

	/** default constructor */
	public Email() {
	}

	/** full constructor */
	public Email(Integer emailId, User to, User from, String content,
			Integer status, Date createtime) {
		this.emailId = emailId;
		this.to = to;
		this.from = from;
		this.content = content;
		this.status = status;
		this.createtime = createtime;
	}

	// Property accessors

	public Integer getEmailId() {
		return emailId;
	}

	public void setEmailId(Integer emailId) {
		this.emailId = emailId;
	}

	public User getTo() {
		return to;
	}

	public void setTo(User to) {
		this.to = to;
	}

	public User getFrom() {
		return from;
	}

	public void setFrom(User from) {
		this.from = from;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
}